// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import com.fowo.api.common.mybatis.handlers.SysFileListTypeHandler;
import com.fowo.api.sys.entity.SysFile;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.List;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * ProductSub
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "product_sub", autoResultMap = true)
@Schema(title = "组合产品包含产品")
public class ProductSub implements Serializable {

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 所属产品
   */
  @TableField(value = "`product_id`")
  @JoinField(Product.class)
  @Schema(title = "所属产品")
  private Long productId;

  /**
   * 图片
   */
  @TableField(value = "`pic_url`", typeHandler = SysFileListTypeHandler.class)
  @Schema(title = "图片")
  private List<SysFile> picUrl;

  /**
   * 产品
   */
  @TableField(value = "`sub_id`")
  @JoinField(Product.class)
  @Schema(title = "产品")
  private Long subId;

  /**
   * SKU
   */
  @TableField(value = "`sku`")
  @Schema(title = "SKU")
  private String sku;

  /**
   * 型号
   */
  @TableField(value = "`model`")
  @Schema(title = "型号")
  private String model;

  /**
   * 单位
   */
  @TableField(value = "`unit`")
  @Schema(title = "单位")
  private String unit;

  /**
   * 采购交期
   */
  @TableField(value = "`purchasing_delivery_time`")
  @Schema(title = "采购交期")
  private Integer purchasingDeliveryTime;

  /**
   * 采购成本
   */
  @TableField(value = "`procurement_cost`")
  @Schema(title = "采购成本")
  private java.math.BigDecimal procurementCost;

  /**
   * 产品长度
   */
  @TableField(value = "`product_length`")
  @Schema(title = "产品长度")
  private java.math.BigDecimal productLength;

  /**
   * 产品宽度
   */
  @TableField(value = "`product_width`")
  @Schema(title = "产品宽度")
  private java.math.BigDecimal productWidth;

  /**
   * 产品高度
   */
  @TableField(value = "`product_height`")
  @Schema(title = "产品高度")
  private java.math.BigDecimal productHeight;

  /**
   * 产品净重
   */
  @TableField(value = "`product_net`")
  @Schema(title = "产品净重")
  private java.math.BigDecimal productNet;

  /**
   * 单品毛重
   */
  @TableField(value = "`product_gross`")
  @Schema(title = "单品毛重")
  private java.math.BigDecimal productGross;

  /**
   * 产品材质
   */
  @TableField(value = "`material`")
  @Schema(title = "产品材质")
  private String material;

  /**
   * 数量
   */
  @TableField(value = "`num`")
  @Schema(title = "数量")
  private Long num;
}
